home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Publishing / ImagePortfolio / Source / PaletteMatrix.h < prev    next >
Text File  |  1994-04-01  |  2KB  |  76 lines

  1. // -------------------------------------------------------------------------------------
  2. // PaletteMatrix.h
  3. // -------------------------------------------------------------------------------------
  4.  
  5. #import <libc.h>
  6. #import <mach/cthreads.h>
  7. #import <sys/time.h>
  8. #import <objc/zone.h>
  9. #import <objc/error.h>
  10. #import <appkit/nextstd.h>
  11. #import <appkit/graphics.h>
  12. #import <appkit/Font.h>
  13. #import <appkit/color.h>
  14. #import <appkit/Matrix.h>
  15. #import <appkit/Panel.h>
  16. #import "ImagePortfolio.h"
  17.  
  18. // -------------------------------------------------------------------------------------
  19. #define    myPastboardTYPE            "imageCellPath"
  20.  
  21. // -------------------------------------------------------------------------------------
  22.  
  23. @interface PaletteMatrix : Matrix
  24. {
  25.  
  26.     BOOL            pbCopyTiff;                    // copy tiff image to pasteboard
  27.     BOOL            pbCopyPath;                    // copy path to pasteboard
  28.   
  29.     id                imageList;                    // main image cell container
  30.     id                deleteList;                    // delete list save for undelete
  31.     int                maxCols;
  32.     id                delegate;                    // cell delegate
  33.     mutex_t            loadMutex;                    // cell image load mutex
  34.     BOOL            loadingCells;                // cell loading flag
  35.   
  36. }
  37.  
  38. // -------------------------------------------------------------------------------------
  39.  
  40. - initFrame:(const NXRect*)frameRect;
  41. - free;
  42. - freeCells;
  43. - freeSelectedCells;
  44.  
  45. - delete:sender;
  46. - undelete:sender;
  47. - (BOOL)undeletable;
  48. - saveToFile:(char*)fileName;
  49.  
  50. - (BOOL)setPreferences:(char*)prefBuff returnRows:(int*)rows cols:(int*)cols;
  51. - setDelegate:anObject;
  52. - setCellSize:(const NXSize*)cellSize;
  53. - (NXSize*)cellSize;
  54. - (NXSize*)intercell;
  55. - resizeAndDisplay;
  56.  
  57. - setFont:fontObj;
  58. - addImage:(const char*)filePath;
  59. - addImageCell:iCell;
  60. - (int)imageListCount;
  61. - imageAt:(int)index;
  62.  
  63. - (BOOL)anySelectableCells;
  64. - findCellWithImageFilePath:(char*)fullPath;
  65. - selectedCell;
  66. - selectedCellList;
  67. - (char*)selectedCellPaths;
  68. - (int)selectedCellCount;
  69.  
  70. - sortByCellTitle:sender;
  71. - shellSort:(SEL)sortCompare;
  72.  
  73. - (char*)getPreferenceString:(char*)buff;
  74.  
  75. @end
  76.